import request from '@/utils/request'

export function getNotifications() {
  return request({
    url: '/notification/mine',
    method: 'get'
  })
}

export function readNotifications(data) {
  return request({
    url: '/notification/read',
    method: 'put',
    data: {
      ids: data
    }
  })
}

export function addNotifications(data) {
  return request({
    url: '/notification',
    method: 'post',
    data
  })
}
